<?php
namespace app\admin\model;

use think\Model;

class PartnerModel extends Model
{

    protected  $table =['dy_partner'];

    public function FcModel()
    {
        return $this->hasOne('FcModel', 'id', 'fid');
    }

    protected function setDescriptionAttr($value)
    {
        return auto_description($value, input('param.content'));
    }

    public function getStatusTurnAttr($value, $data)
    {
        $turnArr = [0=>lang('status0'), 1=>lang('status1')];
        return $turnArr[$data['status']];
    }
}